/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package eu.jakubiak.jpa.translator.example.jsf.utils;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author jakubiak_a
 */
public class PersistenceUtil {

    private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("testPU");
    
    
    public static EntityManagerFactory getEntityManagerFactory() {
        return emf;
    }
    
    public static EntityManager createEntityManager() {
        return emf.createEntityManager();
    }
}
